------------------------------------
By  : http://www.vBulletinExpert.com
------------------------------------
Please visit to see more products!!!
------------------------------------

Product: AJAX Preview

What does it do?

- Shows preview of the message you are writing without leaving the page.
- See Demo.gif


---------------
Version History
---------------

----------
17/11/2007
----------

1.3
~~~

- The hack no longer uses the vbulletin "Preview Post" button, instead its got its own button at the top, this
  gives users the option of doing a ajax quick preview or the default vbulletin preview.
- Added "updating" text while the preview is being processed.

----------
14/10/2007
----------

1.2.1
~~~

- Fixed a few bugs
- No more edits required

----------
06/07/2007
----------

1.2
~~~

- Fixed image issue
- Added AME - Auto Media Embedding preview http://www.vbulletin.org/forum/showthread.php?t=150863

----------
05/07/2007
----------

1.1
~~~

- Phrase added
- Cached templates

1.0
~~~

- First Release


###########
NEW INSTALL
###########

- Just import the product file (THERE ARE NO TEMPLATE EDITS)


###########
UPGRADE
###########

- Import the product file, remember to tick "Allow Overwrite" to "yes"

- UPGRADE FROM 1.2 TO 1.2.1 or 1.3 FOLLOW THE BELLOW STEPS


###########
STEPS TO UPGRADE FROM 1.2 -> 1.2.1
###########

In newthread AND newreply TEMPLATES


IN EACH TEMPLATE THERE ARE TWO OCCURRENCESES OF THE "FIND" CODE, SO THATS 4 REPLACEMENTS IN TOTAL

~~~~
FIND
~~~~


<input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" onclick="update_preview(); return false;" accesskey="r" tabindex="1" />

~~~~~~~~~~~~
REPLACE WITH
~~~~~~~~~~~~


<input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="r" tabindex="1" />

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IN THE SAME TEMPLATES - newthread AND newreply
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

IN EACH TEMPLATE THERE IS ONLY ON OCCURRENCES OF THE "FIND" CODE, SO THATS 2 REPLACEMENTS IN TOTAL

~~~~
FIND
~~~~

				<if condition="$show['misc_options']">
				<fieldset class="fieldset">
					<legend>$vbphrase[miscellaneous_options]</legend>
					<div style="padding:$stylevar[formspacer]px">
						<if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>
						<if condition="$show['parseurl']"><div><label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" onclick="(this.value==1) ? this.value=0 : this.value=1;" id="cb_parseurl" tabindex="1" $checked[parseurl] />$vbphrase[automatically_parse_links_in_text]</label></div><else /><input name="parseurl" type="hidden" value="0" id="cb_parseurl"></if>
						<if condition="$disablesmiliesoption">
                        $disablesmiliesoption
                        <else />
                        <input name="disablesmilies" type="hidden" value="0" id="cb_disablesmilies">
                        </if>
					</div>
				</fieldset>
				</if>

~~~~~~~~~~~~
REPLACE WITH
~~~~~~~~~~~~

				<if condition="$show['misc_options']">
				<fieldset class="fieldset">
					<legend>$vbphrase[miscellaneous_options]</legend>
					<div style="padding:$stylevar[formspacer]px">
						<if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>
						<if condition="$show['parseurl']"><div><label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" tabindex="1" $checked[parseurl] />$vbphrase[automatically_parse_links_in_text]</label></div></if>
						$disablesmiliesoption
					</div>
				</fieldset>
				</if>


--------
ALL DONE
--------

vBulletinExpert.com is NOT affilliated with Jelsoft or vBulletin.